#ifndef FINANCEQUERYSTANDARDITEMMODEL_H
#define FINANCEQUERYSTANDARDITEMMODEL_H

#include <QStandardItemModel>
#include "message.h"

class FinanceQueryStandardItemModel : public QStandardItemModel
{
    Q_OBJECT
public:
    explicit FinanceQueryStandardItemModel(QObject *parent = nullptr);

    QStringList header1;
    QStringList header2;

    void setType(int type);

    void reset();

    void insertMessage(QList<Message*> messages);

    void insertMessage(Message &message);
signals:

public slots:

private:
    int type;
    QStringList header;

    QList<Message*> messages;
};

#endif // FINANCEQUERYSTANDARDITEMMODEL_H
